<ImportExportXml version="3.0.5300.0">
  <Entities>
    <Entity>
      <Name LocalizedName="Quote Product" OriginalName="Quote Product">QuoteDetail</Name>
      <ObjectTypeCode>1085</ObjectTypeCode>
      <LocalizedName>Quote Product</LocalizedName>
      <LocalizedCollectionName>Quote Products</LocalizedCollectionName>
      <EntityInfo>
        <entity Name="QuoteDetail">
          <HasRelatedNotes>False</HasRelatedNotes>
          <HasRelatedActivities>False</HasRelatedActivities>
          <ObjectTypeCode>1085</ObjectTypeCode>
          <BaseTableName>QuoteDetailBase</BaseTableName>
          <IsCustomizable>1</IsCustomizable>
          <IsMappable>1</IsMappable>
          <IsAudited>1</IsAudited>
          <IsReplicated>1</IsReplicated>
          <IsChildEntity>1</IsChildEntity>
          <LocalizedName>Quote Product</LocalizedName>
          <LocalizedCollectionName>Quote Products</LocalizedCollectionName>
          <Description>Product line item in a quote. The details include such information as product ID, description, quantity, and cost.</Description>
          <ExtensionTableName>QuoteDetailExtensionBase</ExtensionTableName>
          <ReportViewName>FilteredQuoteDetail</ReportViewName>
          <IsRenameable>1</IsRenameable>
          <DbCascadeMask>0</DbCascadeMask>
          <attributes>
            <attribute PhysicalName="BaseAmount">
              <Type>money</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Description>Subtotal of the quote product before discounts are applied and taxes are added.</Description>
            </attribute>
            <attribute PhysicalName="CreatedBy">
              <Type>lookup</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <RequiresPlatformAuthorization>1</RequiresPlatformAuthorization>
              <ReferencedEntityObjectTypeCode>8</ReferencedEntityObjectTypeCode>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Description>Unique identifier of the user who created the quote product.</Description>
            </attribute>
            <attribute PhysicalName="CreatedOn">
              <Type>datetime</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <RequiresPlatformAuthorization>1</RequiresPlatformAuthorization>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Description>Date and time when the quote product was created.</Description>
            </attribute>
            <attribute PhysicalName="DeletionStateCode">
              <Type>int</Type>
              <IsNullable>0</IsNullable>
            </attribute>
            <attribute PhysicalName="Description">
              <Type>ntext</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Description>Description of the quote product. </Description>
            </attribute>
            <attribute PhysicalName="ExtendedAmount">
              <Type>money</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Description>Subtotal of the quote product after discounts are applied and taxes are added.</Description>
            </attribute>
            <attribute PhysicalName="IsPriceOverridden">
              <Type>bit</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid|RequiredForForm</DisplayMask>
              <Description>Information about whether to override product catalog pricing.</Description>
            </attribute>
            <attribute PhysicalName="IsPriceOverriddenName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsLogical>1</IsLogical>
              <AttributeOf>IsPriceOverridden</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <IsSortAttribute>1</IsSortAttribute>
            </attribute>
            <attribute PhysicalName="IsProductOverridden">
              <Type>bit</Type>
              <DefaultValue>(0)</DefaultValue>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid|RequiredForForm</DisplayMask>
              <Description>Information about whether the product is a write-in product or an existing product.</Description>
            </attribute>
            <attribute PhysicalName="IsProductOverriddenName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsLogical>1</IsLogical>
              <AttributeOf>IsProductOverridden</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <IsSortAttribute>1</IsSortAttribute>
            </attribute>
            <attribute PhysicalName="LineItemNumber">
              <Type>int</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Description>Line item number for the quote product.</Description>
            </attribute>
            <attribute PhysicalName="ManualDiscountAmount">
              <Type>money</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Description>Customized discount amount for the quote product.</Description>
            </attribute>
            <attribute PhysicalName="ModifiedBy">
              <Type>lookup</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <RequiresPlatformAuthorization>1</RequiresPlatformAuthorization>
              <ReferencedEntityObjectTypeCode>8</ReferencedEntityObjectTypeCode>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Description>Unique identifier of the user who last modified the quote product.</Description>
            </attribute>
            <attribute PhysicalName="ModifiedOn">
              <Type>datetime</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <RequiresPlatformAuthorization>1</RequiresPlatformAuthorization>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Description>Date and time when the quote product was last modified.</Description>
            </attribute>
            <attribute PhysicalName="OwningBusinessUnit">
              <Type>uniqueidentifier</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsLogical>1</IsLogical>
              <Description>Unique identifier of the business unit that owns the quote detail.</Description>
              <RelationshipName>quote_details</RelationshipName>
              <RemoteAttributeName>OwningBusinessUnit</RemoteAttributeName>
            </attribute>
            <attribute PhysicalName="OwningUser">
              <Type>uniqueidentifier</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsLogical>1</IsLogical>
              <Description>Unique identifier of the user who owns the quote detail.</Description>
              <RelationshipName>quote_details</RelationshipName>
              <RemoteAttributeName>OwningUser</RemoteAttributeName>
            </attribute>
            <attribute PhysicalName="PricePerUnit">
              <Type>money</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid|RequiredForForm</DisplayMask>
              <Description>Price per unit for the quote product.</Description>
            </attribute>
            <attribute PhysicalName="PricingErrorCode">
              <Type>picklist</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <Description>Pricing error for the quote product.</Description>
            </attribute>
            <attribute PhysicalName="PricingErrorCodeName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsLogical>1</IsLogical>
              <AttributeOf>PricingErrorCode</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <IsSortAttribute>1</IsSortAttribute>
            </attribute>
            <attribute PhysicalName="ProductDescription">
              <Type>nvarchar</Type>
              <Length>1000</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid|RequiredForForm</DisplayMask>
              <Description>Product description for the quote product.</Description>
            </attribute>
            <attribute PhysicalName="QAdv_allow_discounting">
              <Type>bit</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Description>QuoteAdvantage flag to indicate whether or not discounting is allowed for this item</Description>
            </attribute>
            <attribute PhysicalName="qadv_allow_discountingName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <IsLogical>1</IsLogical>
              <AttributeOf>QAdv_allow_discounting</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
            </attribute>
            <attribute PhysicalName="QAdv_config_category_id">
              <Type>nvarchar</Type>
              <Length>256</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Description>ID of the category that an item was added from.</Description>
            </attribute>
            <attribute PhysicalName="QAdv_config_parent_id">
              <Type>nvarchar</Type>
              <Length>80</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Description>QuoteDetailId of a line item's parent item on a quote</Description>
            </attribute>
            <attribute PhysicalName="Qadv_PercentDiscount">
              <Type>money</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Description />
            </attribute>
            <attribute PhysicalName="Qadv_PercentMarkup">
              <Type>money</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsCustomField>1</IsCustomField>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Description />
            </attribute>
            <attribute PhysicalName="Quantity">
              <Type>decimal</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid|RequiredForForm</DisplayMask>
              <Description>Product quantity specified for the quote product. </Description>
            </attribute>
            <attribute PhysicalName="QuoteDetailId">
              <Type>primarykey</Type>
              <IsNullable>0</IsNullable>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <IsPKAttribute>1</IsPKAttribute>
              <DisplayMask>RequiredForGrid</DisplayMask>
              <Description>Unique identifier of the product line item in the quote.</Description>
            </attribute>
            <attribute PhysicalName="QuoteStateCodeName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsLogical>1</IsLogical>
              <AttributeOf>QuoteStateCode</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <IsSortAttribute>1</IsSortAttribute>
            </attribute>
            <attribute PhysicalName="RequestDeliveryBy">
              <Type>datetime</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Description>Requested delivery date for the quote product.</Description>
            </attribute>
            <attribute PhysicalName="ShipTo_AddressId">
              <Type>uniqueidentifier</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <Description>Unique identifier of the shipping address.</Description>
            </attribute>
            <attribute PhysicalName="ShipTo_City">
              <Type>nvarchar</Type>
              <Length>100</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid|RequiredForForm</DisplayMask>
              <Description>City name in the shipping address.</Description>
            </attribute>
            <attribute PhysicalName="ShipTo_ContactName">
              <Type>nvarchar</Type>
              <Length>300</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid|RequiredForForm</DisplayMask>
              <Description>Contact name for the shipping address.</Description>
            </attribute>
            <attribute PhysicalName="ShipTo_Country">
              <Type>nvarchar</Type>
              <Length>100</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid|RequiredForForm</DisplayMask>
              <Description>Country/region name in the shipping address.</Description>
            </attribute>
            <attribute PhysicalName="ShipTo_Fax">
              <Type>nvarchar</Type>
              <Length>100</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid|RequiredForForm</DisplayMask>
              <Description>Fax number for the shipping address.</Description>
            </attribute>
            <attribute PhysicalName="ShipTo_FreightTermsCode">
              <Type>picklist</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Description>Freight terms for the shipping address.</Description>
            </attribute>
            <attribute PhysicalName="ShipTo_FreightTermsCodeName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsLogical>1</IsLogical>
              <AttributeOf>ShipTo_FreightTermsCode</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <IsSortAttribute>1</IsSortAttribute>
            </attribute>
            <attribute PhysicalName="ShipTo_Line1">
              <Type>nvarchar</Type>
              <Length>100</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid|RequiredForForm</DisplayMask>
              <Description>First line for entering shipping address information.</Description>
            </attribute>
            <attribute PhysicalName="ShipTo_Line2">
              <Type>nvarchar</Type>
              <Length>100</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid|RequiredForForm</DisplayMask>
              <Description>Second line for entering shipping address information.</Description>
            </attribute>
            <attribute PhysicalName="ShipTo_Line3">
              <Type>nvarchar</Type>
              <Length>100</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid|RequiredForForm</DisplayMask>
              <Description>Third line for entering shipping address information.</Description>
            </attribute>
            <attribute PhysicalName="ShipTo_Name">
              <Type>nvarchar</Type>
              <Length>400</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid|RequiredForForm</DisplayMask>
              <Description>Name to enter for the shipping address.</Description>
            </attribute>
            <attribute PhysicalName="ShipTo_PostalCode">
              <Type>nvarchar</Type>
              <Length>40</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid|RequiredForForm</DisplayMask>
              <Description>ZIP Code or postal code in the shipping address.</Description>
            </attribute>
            <attribute PhysicalName="ShipTo_StateOrProvince">
              <Type>nvarchar</Type>
              <Length>100</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid|RequiredForForm</DisplayMask>
              <Description>State or province in the shipping address.</Description>
            </attribute>
            <attribute PhysicalName="ShipTo_Telephone">
              <Type>nvarchar</Type>
              <Length>100</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid|RequiredForForm</DisplayMask>
              <Description>Telephone number associated with the shipping address.</Description>
            </attribute>
            <attribute PhysicalName="Tax">
              <Type>money</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Description>Tax amount for the quote product.</Description>
            </attribute>
            <attribute PhysicalName="VersionNumber">
              <Type>timestamp</Type>
            </attribute>
            <attribute PhysicalName="VolumeDiscountAmount">
              <Type>money</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask>
              <Description>Volume discount amount for the quote product.</Description>
            </attribute>
            <attribute PhysicalName="WillCall">
              <Type>bit</Type>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
              <DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid|RequiredForForm</DisplayMask>
              <Description>Information about whether the customer will call for the quoted products or the products are to be shipped.</Description>
            </attribute>
            <attribute PhysicalName="WillCallName">
              <Type>virtual</Type>
              <ValidForReadApi>1</ValidForReadApi>
              <IsLogical>1</IsLogical>
              <AttributeOf>WillCall</AttributeOf>
              <XmlAbbreviation>name</XmlAbbreviation>
              <IsSortAttribute>1</IsSortAttribute>
            </attribute>
          </attributes>
        </entity>
      </EntityInfo>
      <FieldXml>
        <entity name="quotedetail" objecttypecode="1085">
          <fields>
            <field name="quantity" requiredlevel="required" minvalue="0" maxvalue="100000000000" accuracy="5">
              <displaynames>
                <displayname description="Quantity" languagecode="1033" />
              </displaynames>
            </field>
            <field name="baseamount" requiredlevel="na" minvalue="0" maxvalue="100000000000" accuracy="2" source="1">
              <displaynames>
                <displayname description="Amount" languagecode="1033" />
              </displaynames>
            </field>
            <field name="extendedamount" requiredlevel="na" minvalue="-100000000000" maxvalue="100000000000" accuracy="2" source="1">
              <displaynames>
                <displayname description="Extended Amount" languagecode="1033" />
              </displaynames>
            </field>
            <field name="manualdiscountamount" requiredlevel="na" minvalue="0" maxvalue="100000000000" accuracy="2" source="1">
              <displaynames>
                <displayname description="Manual Discount" languagecode="1033" />
              </displaynames>
            </field>
            <field name="priceperunit" requiredlevel="na" minvalue="0.01" maxvalue="100000000000" accuracy="2" source="1">
              <displaynames>
                <displayname description="Price Per Unit" languagecode="1033" />
              </displaynames>
            </field>
            <field name="volumediscountamount" requiredlevel="na" minvalue="0" maxvalue="100000000000" accuracy="2" source="1">
              <displaynames>
                <displayname description="Volume Discount" languagecode="1033" />
              </displaynames>
            </field>
            <field name="requestdeliveryby" requiredlevel="na" format="date" defaultvalue="">
              <displaynames>
                <displayname description="Requested Delivery Date" languagecode="1033" />
              </displaynames>
            </field>
            <field name="shipto_city" requiredlevel="na" maxlength="50" format="text">
              <displaynames>
                <displayname description="Ship To City" languagecode="1033" />
              </displaynames>
            </field>
            <field name="shipto_country" requiredlevel="na" maxlength="50" format="text">
              <displaynames>
                <displayname description="Ship To Country/Region" languagecode="1033" />
              </displaynames>
            </field>
            <field name="shipto_line1" requiredlevel="na" maxlength="50" format="text">
              <displaynames>
                <displayname description="Ship To Street 1" languagecode="1033" />
              </displaynames>
            </field>
            <field name="shipto_line2" requiredlevel="na" maxlength="50" format="text">
              <displaynames>
                <displayname description="Ship To Street 2" languagecode="1033" />
              </displaynames>
            </field>
            <field name="shipto_line3" requiredlevel="na" maxlength="50" format="text">
              <displaynames>
                <displayname description="Ship To Street 3" languagecode="1033" />
              </displaynames>
            </field>
            <field name="shipto_postalcode" requiredlevel="na" maxlength="20" format="text">
              <displaynames>
                <displayname description="Ship To ZIP/Postal Code" languagecode="1033" />
              </displaynames>
            </field>
            <field name="shipto_stateorprovince" requiredlevel="na" maxlength="50" format="text">
              <displaynames>
                <displayname description="Ship To State/Province" languagecode="1033" />
              </displaynames>
            </field>
            <field name="willcall" requiredlevel="na" defaultvalue="0">
              <displaynames>
                <displayname description="Ship To" languagecode="1033" />
              </displaynames>
              <options nextvalue="2">
                <option value="0">
                  <labels>
                    <label description="Address" languagecode="1033" />
                  </labels>
                </option>
                <option value="1">
                  <labels>
                    <label description="Will Call" languagecode="1033" />
                  </labels>
                </option>
              </options>
            </field>
            <field name="shipto_name" requiredlevel="na" maxlength="200" format="text">
              <displaynames>
                <displayname description="Ship To Name" languagecode="1033" />
              </displaynames>
            </field>
            <field name="ispriceoverridden" requiredlevel="na" defaultvalue="0">
              <displaynames>
                <displayname description="Price Overridden" languagecode="1033" />
              </displaynames>
              <options nextvalue="2">
                <option value="0">
                  <labels>
                    <label description="Use Default" languagecode="1033" />
                  </labels>
                </option>
                <option value="1">
                  <labels>
                    <label description="Override Price" languagecode="1033" />
                  </labels>
                </option>
              </options>
            </field>
            <field name="isproductoverridden" requiredlevel="na" defaultvalue="0">
              <displaynames>
                <displayname description="Select Product" languagecode="1033" />
              </displaynames>
              <options nextvalue="2">
                <option value="0">
                  <labels>
                    <label description="Existing" languagecode="1033" />
                  </labels>
                </option>
                <option value="1">
                  <labels>
                    <label description="Write In" languagecode="1033" />
                  </labels>
                </option>
              </options>
            </field>
            <field name="productdescription" requiredlevel="na" maxlength="500" format="text">
              <displaynames>
                <displayname description="Product Description" languagecode="1033" />
              </displaynames>
            </field>
            <field name="tax" requiredlevel="na" minvalue="0" maxvalue="1000000000" accuracy="2" source="1">
              <displaynames>
                <displayname description="Tax" languagecode="1033" />
              </displaynames>
            </field>
            <field name="shipto_fax" requiredlevel="na" maxlength="50" format="text">
              <displaynames>
                <displayname description="Ship To Fax" languagecode="1033" />
              </displaynames>
            </field>
            <field name="shipto_telephone" requiredlevel="na" maxlength="50" format="text">
              <displaynames>
                <displayname description="Ship To Phone" languagecode="1033" />
              </displaynames>
            </field>
            <field name="createdon" requiredlevel="na" format="date">
              <displaynames>
                <displayname description="Created On" languagecode="1033" />
              </displaynames>
            </field>
            <field name="modifiedon" requiredlevel="na" format="date">
              <displaynames>
                <displayname description="Modified On" languagecode="1033" />
              </displaynames>
            </field>
            <field name="createdby" requiredlevel="na">
              <displaynames>
                <displayname description="Created By" languagecode="1033" />
              </displaynames>
            </field>
            <field name="modifiedby" requiredlevel="na">
              <displaynames>
                <displayname description="Modified By" languagecode="1033" />
              </displaynames>
            </field>
            <field name="shipto_freighttermscode" requiredlevel="na" defaultvalue="">
              <displaynames>
                <displayname description="Freight Terms" languagecode="1033" />
              </displaynames>
              <options nextvalue="3">
                <option value="1">
                  <labels>
                    <label description="FOB" languagecode="1033" />
                  </labels>
                </option>
                <option value="2">
                  <labels>
                    <label description="No Charge" languagecode="1033" />
                  </labels>
                </option>
              </options>
            </field>
            <field name="shipto_addressid" requiredlevel="na">
              <displaynames>
                <displayname description="Ship To Address ID" languagecode="1033" />
              </displaynames>
            </field>
            <field name="shipto_contactname" requiredlevel="na" maxlength="100" format="text">
              <displaynames>
                <displayname description="Ship To Contact Name" languagecode="1033" />
              </displaynames>
            </field>
            <field name="description" requiredlevel="na" maxlength="2000">
              <displaynames>
                <displayname description="Description" languagecode="1033" />
              </displaynames>
            </field>
            <field name="lineitemnumber" requiredlevel="na" minvalue="0" maxvalue="1000000000">
              <displaynames>
                <displayname description="Line Item Number" languagecode="1033" />
              </displaynames>
            </field>
            <field name="owningbusinessunit" requiredlevel="required">
              <displaynames>
                <displayname description="Owning Business Unit" languagecode="1033" />
              </displaynames>
            </field>
            <field name="owninguser" requiredlevel="required">
              <displaynames>
                <displayname description="Owning User" languagecode="1033" />
              </displaynames>
            </field>
            <field name="pricingerrorcode" requiredlevel="na" defaultvalue="1">
              <displaynames>
                <displayname description="Pricing Error " languagecode="1033" />
              </displaynames>
              <options nextvalue="2">
                <option value="1">
                  <labels>
                    <label description="Default Value" languagecode="1033" />
                  </labels>
                </option>
              </options>
            </field>
            <field name="quotedetailid" requiredlevel="required">
              <displaynames>
                <displayname description="Quote Product" languagecode="1033" />
              </displaynames>
            </field>
            <field name="qadv_config_parent_id" requiredlevel="na" maxlength="40" format="text">
              <displaynames>
                <displayname description="config_parent_id" languagecode="1033" />
              </displaynames>
            </field>
            <field name="qadv_config_category_id" requiredlevel="na" maxlength="128" format="text">
              <displaynames>
                <displayname description="config_category_id" languagecode="1033" />
              </displaynames>
            </field>
            <field name="qadv_allow_discounting" requiredlevel="na" defaultvalue="1">
              <displaynames>
                <displayname description="allow_discounting" languagecode="1033" />
              </displaynames>
              <options nextvalue="1">
                <option value="0">
                  <labels>
                    <label description="No" languagecode="1033" />
                  </labels>
                </option>
                <option value="1">
                  <labels>
                    <label description="Yes" languagecode="1033" />
                  </labels>
                </option>
              </options>
            </field>
            <field name="qadv_percentdiscount" requiredlevel="na" minvalue="0" maxvalue="1000000000" accuracy="2">
              <displaynames>
                <displayname description="PercentDiscount" languagecode="1033" />
              </displaynames>
            </field>
            <field name="qadv_percentmarkup" requiredlevel="na" minvalue="0" maxvalue="1000000000" accuracy="2">
              <displaynames>
                <displayname description="PercentMarkup" languagecode="1033" />
              </displaynames>
            </field>
          </fields>
        </entity>
      </FieldXml>
      <FormXml>
        <forms>
          <entity name="quotedetail" objecttypecode="1085">
            <form type="main" id="{1ff13845-48d3-4744-bc69-43b691931a6e}">
              <data id="quoteid" datafieldname="quoteid" classid="{5546E6CD-394C-4bee-94A8-4425E17EF6C6}" />
              <data id="shipto_addressid" datafieldname="shipto_addressid" classid="{5546E6CD-394C-4bee-94A8-4425E17EF6C6}" />
              <tabs>
                <tab name="general" verticallayout="true" id="{109982e3-de79-48cc-b9f6-54692e6b3221}" IsUserDefined="0">
                  <labels>
                    <label description="General" languagecode="1033" />
                  </labels>
                  <sections>
                    <section name="quote detail information" showlabel="false" showbar="false" id="{b10abd1a-0622-44f0-826b-5d23cc11f17b}" IsUserDefined="0">
                      <labels>
                        <label description="Quote Detail Information" languagecode="1033" />
                      </labels>
                      <rows>
                        <row>
                          <cell>
                            <labels>
                              <label description="Select Product" languagecode="1033" />
                            </labels>
                            <events>
                              <event name="onchange" application="true" active="true">
                                <script><![CDATA[
												var bIsWriteIn = crmForm.all.isproductoverridden.DataValue;

												/* enable or disable the fields */

												crmForm.all.productid.Disabled = bIsWriteIn;
												crmForm.all.uomid.Disabled = (bIsWriteIn || crmForm.all.productid.DataValue == null);
												crmForm.all.productdescription.Disabled = !bIsWriteIn;

												/* set the required fields */

												crmForm.SetFieldReqLevel("productid", !bIsWriteIn);
												crmForm.SetFieldReqLevel("uomid", !bIsWriteIn);
												crmForm.SetFieldReqLevel("productdescription", bIsWriteIn);
												crmForm.SetFieldReqLevel("priceperunit",bIsWriteIn);

												var oPriceOverridden = crmForm.all.ispriceoverridden;

												if (bIsWriteIn)
												{
													oPriceOverridden.prevDataValue = oPriceOverridden.DataValue;
													oPriceOverridden.DataValue = true;

													/* provided from container page */
													/* For write-in products the accuracy is same as the accuracy configured for quantity field in the form. */
													crmForm.all.quantity.Precision = _defaultQtyAcc;
												}
												else
												{
													/* provided from container page */
													/* For existing products the quantity accuracy is same as the quantity accuracy configured for the product. */
													crmForm.all.quantity.Precision = _productQtyDec;

													oPriceOverridden.DataValue = (!IsNull(oPriceOverridden.prevDataValue) ? oPriceOverridden.prevDataValue : false)
												}

												/* Update ispriceoverriden with its current state */

												ispriceoverridden_onchange();

												/* enable or disable ispriceoverridden options */

												crmForm.all.ispriceoverridden.Disabled = bIsWriteIn;

												]]></script>
                                <dependencies>
                                  <dependency id="productid" />
                                  <dependency id="uomid" />
                                  <dependency id="productdescription" />
                                  <dependency id="ispriceoverridden" />
                                  <dependency id="priceperunit" />
                                </dependencies>
                              </event>
                            </events>
                            <control id="isproductoverridden" classid="{67FAC785-CD58-4f9f-ABB3-4B7DDC6ED5ED}" datafieldname="isproductoverridden" />
                          </cell>
                          <cell>
                            <labels>
                              <label description="Product Description" languagecode="1033" />
                            </labels>
                            <control id="productdescription" classid="{4273EDBD-AC1D-40d3-9FB2-095C621B552D}" datafieldname="productdescription" />
                          </cell>
                        </row>
                        <row>
                          <cell>
                            <labels>
                              <label description="Product" languagecode="1033" />
                            </labels>
                            <events>
                              <event name="onchange" application="true" active="true">
                                <script><![CDATA[
													/* Clear the unit field because the product has changed */
													crmForm.all.uomid.Clear();

													/* enable unit field if there is a product or disable it */
													crmForm.all.uomid.Disabled = (crmForm.all.productid.DataValue == null);

													/* Set the quantity accuracy to default accuracy until unit is selected. Same as the accuracy configured for quantity field in the form. */
													crmForm.all.quantity.Precision = _productQtyDec = _defaultQtyAcc;


												]]></script>
                                <dependencies>
                                  <dependency id="quantity" />
                                  <dependency id="uomid" />
                                </dependencies>
                              </event>
                            </events>
                            <control id="productid" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="productid" />
                          </cell>
                          <cell>
                            <labels>
                              <label description="Unit" languagecode="1033" />
                            </labels>
                            <events>
                              <event name="onclick" application="true" active="true">
                                <script><![CDATA[
													var oImg = event.srcElement;

													oImg.previousValue = IsNull(oImg.DataValue) ? null : oImg.DataValue[0].id;

													oImg.AddParam("ObjectTypeCode", 1084);
													oImg.AddParam("ObjectId", crmForm.quoteid.value);
													oImg.AddParam("ProductId", crmForm.all.productid.DataValue[0].id);

													oImg.Lookup(true);

												]]></script>
                                <dependencies>
                                  <dependency id="quoteid" />
                                  <dependency id="productid" />
                                </dependencies>
                              </event>
                              <event name="onchange" application="true" active="true">
                                <script><![CDATA[
													var aoItems = crmForm.all.uomid.DataValue;

													/* check if the user selected none */
													if ( IsNull(aoItems) )
													{
														/* If no unit is selected set the quantity accuracy to default accuracy. Same as the accuracy configured for quantity field in the form. */
														_productQtyDec = _defaultQtyAcc;
													}
													else
													{
														/* For existing products the quantity accuracy is same as the quantity accuracy configured for the product. */
														_productQtyDec = top.GetQuantityDecimal(1085, crmForm.quoteid.value, crmForm.all.productid.DataValue[0].id, aoItems[0].id);
													}

													crmForm.all.quantity.Precision = _productQtyDec;

												]]></script>
                                <dependencies>
                                  <dependency id="quoteid" />
                                  <dependency id="productid" />
                                  <dependency id="quantity" />
                                </dependencies>
                              </event>
                            </events>
                            <control id="uomid" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="uomid" />
                          </cell>
                        </row>
                      </rows>
                    </section>
                    <section name="pricing" showlabel="true" showbar="true" id="{c698d298-de24-4df2-9d74-615b58944ef5}" IsUserDefined="0">
                      <labels>
                        <label description="Pricing" languagecode="1033" />
                      </labels>
                      <rows>
                        <row>
                          <cell colspan="2">
                            <labels>
                              <label description="Pricing" languagecode="1033" />
                            </labels>
                            <events>
                              <event name="onchange" application="true" active="true">
                                <script><![CDATA[
													var bIsPriceOverride = crmForm.all.ispriceoverridden.DataValue;
													crmForm.all.priceperunit.Disabled = !bIsPriceOverride;
													crmForm.SetFieldReqLevel("priceperunit",bIsPriceOverride);
												]]></script>
                                <dependencies>
                                  <dependency id="priceperunit" />
                                </dependencies>
                              </event>
                            </events>
                            <control id="ispriceoverridden" classid="{67FAC785-CD58-4f9f-ABB3-4B7DDC6ED5ED}" datafieldname="ispriceoverridden" />
                          </cell>
                        </row>
                        <row>
                          <cell>
                            <labels>
                              <label description="Price Per Unit" languagecode="1033" />
                            </labels>
                            <control id="priceperunit" classid="{533B9E00-756B-4312-95A0-DC888637AC78}" datafieldname="priceperunit" />
                          </cell>
                          <cell>
                            <labels />
                          </cell>
                        </row>
                        <row>
                          <cell>
                            <labels>
                              <label description="Volume Discount" languagecode="1033" />
                            </labels>
                            <control id="volumediscountamount" classid="{533B9E00-756B-4312-95A0-DC888637AC78}" datafieldname="volumediscountamount" />
                          </cell>
                          <cell>
                            <labels />
                          </cell>
                        </row>
                        <row>
                          <cell>
                            <labels>
                              <label description="Quantity" languagecode="1033" />
                            </labels>
                            <control id="quantity" classid="{C3EFE0C3-0EC6-42be-8349-CBD9079DFD8E}" datafieldname="quantity" />
                          </cell>
                          <cell>
                            <labels />
                          </cell>
                        </row>
                        <row>
                          <cell>
                            <labels>
                              <label description="Amount" languagecode="1033" />
                            </labels>
                            <control id="baseamount" classid="{533B9E00-756B-4312-95A0-DC888637AC78}" datafieldname="baseamount" />
                          </cell>
                          <cell>
                            <labels />
                          </cell>
                        </row>
                        <row>
                          <cell>
                            <labels>
                              <label description="Manual Discount" languagecode="1033" />
                            </labels>
                            <control id="manualdiscountamount" classid="{533B9E00-756B-4312-95A0-DC888637AC78}" datafieldname="manualdiscountamount" />
                          </cell>
                          <cell>
                            <labels />
                          </cell>
                        </row>
                        <row>
                          <cell>
                            <labels>
                              <label description="Tax" languagecode="1033" />
                            </labels>
                            <control id="tax" classid="{533B9E00-756B-4312-95A0-DC888637AC78}" datafieldname="tax" />
                          </cell>
                          <cell>
                            <labels />
                          </cell>
                        </row>
                        <row>
                          <cell>
                            <labels>
                              <label description="Extended Amount" languagecode="1033" />
                            </labels>
                            <control id="extendedamount" classid="{533B9E00-756B-4312-95A0-DC888637AC78}" datafieldname="extendedamount" />
                          </cell>
                          <cell>
                            <labels />
                          </cell>
                        </row>
                      </rows>
                    </section>
                  </sections>
                </tab>
                <tab name="delivery" id="{86020aab-4fae-4348-ba38-4654f1ddbfa5}" IsUserDefined="0">
                  <labels>
                    <label description="Delivery" languagecode="1033" />
                  </labels>
                  <sections>
                    <section name="delivery information" showlabel="false" showbar="false" id="{c73c8ec3-8b83-4da3-910c-0185c05b5191}" IsUserDefined="0">
                      <labels>
                        <label description="Delivery Information" languagecode="1033" />
                      </labels>
                      <rows>
                        <row>
                          <cell>
                            <labels>
                              <label description="Requested Date" languagecode="1033" />
                            </labels>
                            <control id="requestdeliveryby" classid="{5B773807-9FB2-42db-97C3-7A91EFF8ADFF}" datafieldname="requestdeliveryby" />
                          </cell>
                          <cell>
                            <labels>
                              <label description="Salesperson" languagecode="1033" />
                            </labels>
                            <control id="salesrepid" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="salesrepid" />
                          </cell>
                        </row>
                      </rows>
                    </section>
                  </sections>
                </tab>
                <tab name="address" id="{d8e6ed83-a015-46e8-8563-a283e783a473}" IsUserDefined="0">
                  <labels>
                    <label description="Address" languagecode="1033" />
                  </labels>
                  <sections>
                    <section name="ship to address" showlabel="true" showbar="true" id="{c864599a-81f1-4ab7-8a8d-0a1cc96f1fd4}" IsUserDefined="0">
                      <labels>
                        <label description="Ship To Address" languagecode="1033" />
                      </labels>
                      <rows>
                        <row>
                          <cell colspan="2">
                            <labels>
                              <label description="Ship To" languagecode="1033" />
                            </labels>
                            <events>
                              <event name="onchange" application="true" active="true">
                                <script><![CDATA[
													var aoAll = crmForm.all;

													var bDisabled = aoAll.willcall.DataValue;

													if(!IsNull(aoAll.shipto_name))
													{
														aoAll.shipto_name.Disabled = bDisabled;
													}

													if(!IsNull(aoAll.shipto_line1))
													{
														aoAll.shipto_line1.Disabled = bDisabled;
													}

													if(!IsNull(aoAll.shipto_line2))
													{
														aoAll.shipto_line2.Disabled = bDisabled;
													}

													if(!IsNull(aoAll.shipto_line3))
													{
														aoAll.shipto_line3.Disabled = bDisabled;
													}

													if(!IsNull(aoAll.shipto_city))
													{
														aoAll.shipto_city.Disabled = bDisabled;
													}

													if(!IsNull(aoAll.shipto_stateorprovince))
													{
														aoAll.shipto_stateorprovince.Disabled = bDisabled;
													}

													if(!IsNull(aoAll.shipto_postalcode))
													{
														aoAll.shipto_postalcode.Disabled = bDisabled;
													}

													if(!IsNull(aoAll.shipto_country))
													{
														aoAll.shipto_country.Disabled = bDisabled;
													}

													if(!IsNull(aoAll.shipto_telephone))
													{
														aoAll.shipto_telephone.Disabled = bDisabled;
													}

													if(!IsNull(aoAll.shipto_fax))
													{
														aoAll.shipto_fax.Disabled = bDisabled;
													}

													if(!IsNull(aoAll.shipto_freighttermscode))
													{
														aoAll.shipto_freighttermscode.Disabled = bDisabled;
													}

													if(!IsNull(aoAll.shipto_contactname))
													{
														aoAll.shipto_contactname.Disabled = bDisabled;
													}

												]]></script>
                              </event>
                            </events>
                            <control id="willcall" classid="{67FAC785-CD58-4f9f-ABB3-4B7DDC6ED5ED}" datafieldname="willcall" />
                          </cell>
                        </row>
                        <row>
                          <cell>
                            <labels>
                              <label description="Name" languagecode="1033" />
                            </labels>
                            <control id="shipto_name" classid="{4273EDBD-AC1D-40d3-9FB2-095C621B552D}" datafieldname="shipto_name" />
                          </cell>
                          <cell>
                            <labels>
                              <label description="ZIP/Postal Code" languagecode="1033" />
                            </labels>
                            <control id="shipto_postalcode" classid="{4273EDBD-AC1D-40d3-9FB2-095C621B552D}" datafieldname="shipto_postalcode" />
                          </cell>
                        </row>
                        <row>
                          <cell>
                            <labels>
                              <label description="Street 1" languagecode="1033" />
                            </labels>
                            <control id="shipto_line1" classid="{4273EDBD-AC1D-40d3-9FB2-095C621B552D}" datafieldname="shipto_line1" />
                          </cell>
                          <cell>
                            <labels>
                              <label description="Country/Region" languagecode="1033" />
                            </labels>
                            <control id="shipto_country" classid="{4273EDBD-AC1D-40d3-9FB2-095C621B552D}" datafieldname="shipto_country" />
                          </cell>
                        </row>
                        <row>
                          <cell>
                            <labels>
                              <label description="Street 2" languagecode="1033" />
                            </labels>
                            <control id="shipto_line2" classid="{4273EDBD-AC1D-40d3-9FB2-095C621B552D}" datafieldname="shipto_line2" />
                          </cell>
                          <cell>
                            <labels>
                              <label description="Phone" languagecode="1033" />
                            </labels>
                            <control id="shipto_telephone" classid="{4273EDBD-AC1D-40d3-9FB2-095C621B552D}" datafieldname="shipto_telephone" />
                          </cell>
                        </row>
                        <row>
                          <cell>
                            <labels>
                              <label description="Street 3" languagecode="1033" />
                            </labels>
                            <control id="shipto_line3" classid="{4273EDBD-AC1D-40d3-9FB2-095C621B552D}" datafieldname="shipto_line3" />
                          </cell>
                          <cell>
                            <labels>
                              <label description="Fax" languagecode="1033" />
                            </labels>
                            <control id="shipto_fax" classid="{4273EDBD-AC1D-40d3-9FB2-095C621B552D}" datafieldname="shipto_fax" />
                          </cell>
                        </row>
                        <row>
                          <cell>
                            <labels>
                              <label description="City" languagecode="1033" />
                            </labels>
                            <control id="shipto_city" classid="{4273EDBD-AC1D-40d3-9FB2-095C621B552D}" datafieldname="shipto_city" />
                          </cell>
                          <cell>
                            <labels>
                              <label description="Freight Terms" languagecode="1033" />
                            </labels>
                            <control id="shipto_freighttermscode" classid="{3EF39988-22BB-4f0b-BBBE-64B5A3748AEE}" datafieldname="shipto_freighttermscode" />
                          </cell>
                        </row>
                        <row>
                          <cell>
                            <labels>
                              <label description="State/Province" languagecode="1033" />
                            </labels>
                            <control id="shipto_stateorprovince" classid="{4273EDBD-AC1D-40d3-9FB2-095C621B552D}" datafieldname="shipto_stateorprovince" />
                          </cell>
                          <cell>
                            <labels>
                              <label description="Address Contact" languagecode="1033" />
                            </labels>
                            <control id="shipto_contactname" classid="{4273EDBD-AC1D-40d3-9FB2-095C621B552D}" datafieldname="shipto_contactname" />
                          </cell>
                        </row>
                      </rows>
                    </section>
                  </sections>
                </tab>
              </tabs>
            </form>
          </entity>
          <entity objecttypecode="1085" name="quotedetail">
            <form type="preview" id="{88eb9b18-8ada-4c01-94ac-b22356124cb8}">
              <tabs showlabels="false">
                <tab name="general" verticallayout="true" id="{ed60b4a7-13c6-4256-a5cd-7e6c3b1a56a7}" IsUserDefined="0">
                  <labels>
                    <label description="General" languagecode="1033" />
                  </labels>
                  <sections>
                    <section name="information" id="{c0f6743b-9e37-467a-88c7-cc8e1ee877c8}" IsUserDefined="0" showlabel="false" showbar="false">
                      <labels>
                        <label description="Information" languagecode="1033" />
                      </labels>
                      <rows>
                        <row>
                          <cell>
                            <labels>
                              <label description="Created By" languagecode="1033" />
                            </labels>
                            <control id="createdby" datafieldname="createdby" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" />
                          </cell>
                          <cell>
                            <labels>
                              <label description="Created On" languagecode="1033" />
                            </labels>
                            <control id="createdon" datafieldname="createdon" classid="{5B773807-9FB2-42db-97C3-7A91EFF8ADFF}" />
                          </cell>
                        </row>
                        <row>
                          <cell>
                            <labels>
                              <label description="Modified By" languagecode="1033" />
                            </labels>
                            <control id="modifiedby" datafieldname="modifiedby" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" />
                          </cell>
                          <cell>
                            <labels>
                              <label description="Modified On" languagecode="1033" />
                            </labels>
                            <control id="modifiedon" datafieldname="modifiedon" classid="{5B773807-9FB2-42db-97C3-7A91EFF8ADFF}" />
                          </cell>
                        </row>
                      </rows>
                    </section>
                  </sections>
                </tab>
              </tabs>
            </form>
          </entity>
        </forms>
      </FormXml>
      <SavedQueries>
        <savedqueries entity="SavedQuery" morerecords="0" paging-cookie="" version="3.0">
          <savedquery>
            <columnsetxml>
              <columnset version="3.0">
                <filter type="and">
                  <condition column="isproductoverridden" value="1" operator="eq" />
                </filter>
                <column>productdescription</column>
                <column>priceperunit</column>
                <column>quantity</column>
                <column>extendedamount</column>
                <column>quotedetailid</column>
                <ascend>productdescription</ascend>
              </columnset>
            </columnsetxml>
            <description>All Write In Product Quote Detail records for an existing Quote.</description>
            <isquickfindquery name="No">0</isquickfindquery>
            <isuserdefined name="Yes">1</isuserdefined>
            <isdefault name="No">0</isdefault>
            <returnedtypecode formattedvalue="1,085">1085</returnedtypecode>
            <savedqueryid>{9BFC665C-6F50-48C1-B9D7-8C88776F30CD}</savedqueryid>
            <queryapi>CRMQuoteDetail.RetrieveByObject</queryapi>
            <name>Quote - Quote Details - Write In Products</name>
            <layoutxml>
              <grid name="quotedetails" object="1085" jump="" select="1" icon="1" preview="1">
                <row name="quotedetail" id="quotedetailid">
                  <cell name="productdescription" width="300" />
                  <cell name="priceperunit" width="100" />
                  <cell name="quantity" width="100" />
                  <cell name="extendedamount" width="125" />
                </row>
              </grid>
            </layoutxml>
            <querytype formattedvalue="2">2</querytype>
            <iscustomizable name="No">0</iscustomizable>
          </savedquery>
          <savedquery>
            <columnsetxml>
              <columnset version="3.0">
                <filter type="and">
                  <condition column="isproductoverridden" value="0" operator="eq" />
                </filter>
                <column>productid</column>
                <column>priceperunit</column>
                <column>quantity</column>
                <column>extendedamount</column>
                <column>quotedetailid</column>
                <ascend>productid</ascend>
              </columnset>
            </columnsetxml>
            <description>Displays information about the products included in a quote in the detail form of the associated quote record. This view is in the Products side tab.</description>
            <isquickfindquery name="No">0</isquickfindquery>
            <isuserdefined name="Yes">1</isuserdefined>
            <isdefault name="Yes">1</isdefault>
            <returnedtypecode formattedvalue="1,085">1085</returnedtypecode>
            <savedqueryid>{4EC5BD8A-5580-49AA-BD6E-1368AD611B6A}</savedqueryid>
            <queryapi>CRMQuoteDetail.RetrieveByObject</queryapi>
            <name>Quote Product Associated View</name>
            <layoutxml>
              <grid name="quotedetails" object="1085" jump="" select="1" icon="1" preview="1">
                <row name="quotedetail" id="quotedetailid">
                  <cell name="productid" width="300" />
                  <cell name="priceperunit" width="100" />
                  <cell name="quantity" width="100" />
                  <cell name="extendedamount" width="125" />
                </row>
              </grid>
            </layoutxml>
            <querytype formattedvalue="2">2</querytype>
            <iscustomizable name="No">0</iscustomizable>
          </savedquery>
        </savedqueries>
      </SavedQueries>
      <Strings />
    </Entity>
  </Entities>
  <EntityMaps>
    <EntityMap>
      <EntitySource LocalizedName="Quote Product">QuoteDetail</EntitySource>
      <EntityTarget LocalizedName="Order Product">SalesOrderDetail</EntityTarget>
      <AttributeMaps>
        <AttributeMap>
          <AttributeSource>description</AttributeSource>
          <AttributeTarget>description</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>ispriceoverridden</AttributeSource>
          <AttributeTarget>ispriceoverridden</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>isproductoverridden</AttributeSource>
          <AttributeTarget>isproductoverridden</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>manualdiscountamount</AttributeSource>
          <AttributeTarget>manualdiscountamount</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>lineitemnumber</AttributeSource>
          <AttributeTarget>lineitemnumber</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>willcall</AttributeSource>
          <AttributeTarget>willcall</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>uomid</AttributeSource>
          <AttributeTarget>uomid</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>tax</AttributeSource>
          <AttributeTarget>tax</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_telephone</AttributeSource>
          <AttributeTarget>shipto_telephone</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_stateorprovince</AttributeSource>
          <AttributeTarget>shipto_stateorprovince</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_line3</AttributeSource>
          <AttributeTarget>shipto_line3</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_postalcode</AttributeSource>
          <AttributeTarget>shipto_postalcode</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_name</AttributeSource>
          <AttributeTarget>shipto_name</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_line1</AttributeSource>
          <AttributeTarget>shipto_line1</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_line2</AttributeSource>
          <AttributeTarget>shipto_line2</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>priceperunit</AttributeSource>
          <AttributeTarget>priceperunit</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>pricingerrorcode</AttributeSource>
          <AttributeTarget>pricingerrorcode</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>productdescription</AttributeSource>
          <AttributeTarget>productdescription</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>productid</AttributeSource>
          <AttributeTarget>productid</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>requestdeliveryby</AttributeSource>
          <AttributeTarget>requestdeliveryby</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>quantity</AttributeSource>
          <AttributeTarget>quantity</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_city</AttributeSource>
          <AttributeTarget>shipto_city</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>salesrepid</AttributeSource>
          <AttributeTarget>salesrepid</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_country</AttributeSource>
          <AttributeTarget>shipto_country</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_fax</AttributeSource>
          <AttributeTarget>shipto_fax</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_freighttermscode</AttributeSource>
          <AttributeTarget>shipto_freighttermscode</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_addressid</AttributeSource>
          <AttributeTarget>shipto_addressid</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_contactname</AttributeSource>
          <AttributeTarget>shipto_contactname</AttributeTarget>
        </AttributeMap>
      </AttributeMaps>
    </EntityMap>
    <EntityMap>
      <EntitySource LocalizedName="Opportunity Product">OpportunityProduct</EntitySource>
      <EntityTarget LocalizedName="Quote Product">QuoteDetail</EntityTarget>
      <AttributeMaps>
        <AttributeMap>
          <AttributeSource>uomid</AttributeSource>
          <AttributeTarget>uomid</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>quantity</AttributeSource>
          <AttributeTarget>quantity</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>productid</AttributeSource>
          <AttributeTarget>productid</AttributeTarget>
        </AttributeMap>
      </AttributeMaps>
    </EntityMap>
    <EntityMap>
      <EntitySource LocalizedName="Quote">Quote</EntitySource>
      <EntityTarget LocalizedName="Quote Product">QuoteDetail</EntityTarget>
      <AttributeMaps>
        <AttributeMap>
          <AttributeSource>willcall</AttributeSource>
          <AttributeTarget>willcall</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_telephone</AttributeSource>
          <AttributeTarget>shipto_telephone</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_stateorprovince</AttributeSource>
          <AttributeTarget>shipto_stateorprovince</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_name</AttributeSource>
          <AttributeTarget>shipto_name</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_postalcode</AttributeSource>
          <AttributeTarget>shipto_postalcode</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_line3</AttributeSource>
          <AttributeTarget>shipto_line3</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_line2</AttributeSource>
          <AttributeTarget>shipto_line2</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_freighttermscode</AttributeSource>
          <AttributeTarget>shipto_freighttermscode</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_line1</AttributeSource>
          <AttributeTarget>shipto_line1</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_fax</AttributeSource>
          <AttributeTarget>shipto_fax</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_country</AttributeSource>
          <AttributeTarget>shipto_country</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_city</AttributeSource>
          <AttributeTarget>shipto_city</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_addressid</AttributeSource>
          <AttributeTarget>shipto_addressid</AttributeTarget>
        </AttributeMap>
        <AttributeMap>
          <AttributeSource>shipto_contactname</AttributeSource>
          <AttributeTarget>shipto_contactname</AttributeTarget>
        </AttributeMap>
      </AttributeMaps>
    </EntityMap>
  </EntityMaps>
  <EntityRelationships />
</ImportExportXml>